<%--
  Created by IntelliJ IDEA.
  User: wave2003
  Date: 2022/7/7
  Time: 11:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ page import="org.apache.commons.fileupload.*"%>
<html>
<head>
    <title>Title</title>
</head>
<script language="JavaScript">
    function close_window() {
        alert("商品图片添加成功！！");
    }
    function x() {
        var name = document.getElementById("submit").getAttribute("name");
        if (name.trim().length != 0){
            window.close()
            window.opener.location.reload();
        }
    }
</script>
<body onload="x()">
<form action="merchant_Add_CommodityImagesSerclet" method="post" enctype="multipart/form-data">
    <span>上传商品图片:</span>
    <input type="file"  name="uploadFile">
    <br/>
    <input type="submit" id="submit" onclick="close_window()" name="${requestScope.merchantSon_state}" value="提交">
</form>
</body>
</html>
